﻿using System.Collections.Generic;

namespace Ant.Interface.Data.Migration.Schema
{
    public class SqlStatementCommand : SchemaCommand
    {
        public SqlStatementCommand(string sql)
            : base(string.Empty, SchemaCommandType.SqlStatement)
        {
            Sql = sql;
            Providers = new List<string>();
        }

        public string Sql { get; private set; }

        public List<string> Providers { get; private set; }

        public SqlStatementCommand ForProvider(string dataProvider)
        {
            Providers.Add(dataProvider);
            return this;
        }
    }
}